Skip to content

Added FAPI, functions, and changed some things.#4

Open
technosophos wants to merge 42 commits intotanarurkerem:masterfrom
technosophos:master
Open

Added FAPI, functions, and changed some things.#4
technosophos wants to merge 42 commits intotanarurkerem:masterfrom
technosophos:master

Conversation

@technosophos
Copy link
Copy Markdown

In a nutshell, I did the following:

  • Renamed drupal.snippets to php-drupal.snippets to remove the need for declaring drupal as a language or syntax.
  • Added FAPI type snippets
  • Added several more shortcuts (block_info, blocki, jdump, ddump, etc.)
  • Added a few frequently used functions, including watchdog
  • Added snippets for the t() function using tt and ttt since t is taken by php.snippets (grrr...)
  • Started working on docs in VIM help text format
  • Added .view as a Drupal extension.

Since I do all my coding using the Janus mvim distro, I tested against that.

If not all of this appeals to you, feel free to cherry pick. Hopefully, though, I've only added things that are in line with your own preferences and goals.

The .view file should have PHP syntax highlighting, and the
PHP syntax should use HTML and JS syntax highlighting in
relevant portions.
This seems to correctly correlated this snippets file with the
PHP language support (without any aliasing).
Removed info files (those are for .ini format) and added leading
PHP declaration for others.
This assumes that you have .info files mapped to the INI syntax.
@technosophos
Copy link
Copy Markdown
Author

Recent changes include:

  • Updating a few hooks to do more by default (in hook_* triggers, not h_* triggers)
  • Fixing an issue with Filename() by adding DrupalFilename().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants